#!/bin/bash

tempdir=$(mktemp -d /tmp/multiarc.XXXXX)
target=$PWD
command=${@:2}
file=$1

pushd "$tempdir"

eval $command
cp -Rfp "$file" "$target"

popd

rm -r -f "$tempdir"